import 'package:flutter/material.dart';
import 'package:fluro/fluro.dart';

/// 路由handler 
Handler routerHandler(Widget widget) => Handler(
  handlerFunc: (BuildContext? context, Map<String, List<String>> params) {
    return widget;
  }
);
///  
Future navigateTo(BuildContext context, String routeName) {
  return FluroRouter.appRouter.navigateTo(context, routeName, transition: TransitionType.native);
}
///
Future modalTo(BuildContext context, String routeName) {
  return FluroRouter.appRouter.navigateTo(context, routeName, transition: TransitionType.nativeModal);
}
